Stop

General Operation Statement

Syntax samples

STOP {<string expression>}

STOP

STOP "Normal termination"

Description

Terminates the current replication and optionally displays a message. The simulation will then continue with the next replication. Use STOP to end a replication when the simulation has run long enough to provide sufficient statistical data.

Valid In

Any logic.

Components

<string expression>

An optional message to display when the replication stops.

Example

In the example below, a STOP statement is used in Operation Logic to end the simulation whenever the variable Total_Complete reaches 100.

 

 

See Also

BREAK, BREAKBLK, RETURN, and PAUSE.